21c7fa2be8f8fb3f4c9c5c7f24df66356339d80d,jps/jps-builders/src/org/jetbrains/jps/incremental/java/JavaBuilder.java,JavaBuilder,compile,#CompileContext#ModuleChunk#DirtyFilesHolder#Collection#OutputConsumer#,220
Before Change
if (!compiledOk && diagnosticSink.getErrorCount() == 0) {
diagnosticSink.report(new PlainMessageDiagnostic(Diagnostic.Kind.ERROR, "Compilation failed: internal java compiler error"));
}
if (!Utils.PROCEED_ON_ERROR_KEY.get(context, Boolean.FALSE) && diagnosticSink.getErrorCount() > 0) {
if (!compiledOk) {
diagnosticSink.report(new PlainMessageDiagnostic(Diagnostic.Kind.OTHER, "Errors occurred while compiling module '" + chunkName + "'"));
}
After Change
context.checkCanceled();
if (!compiledOk && (diagnosticSink.getErrorCount() + tempRootsErrorCount) == 0) {
diagnosticSink.report(new PlainMessageDiagnostic(Diagnostic.Kind.ERROR, "Compilation failed: internal java compiler error"));
}
final int totalErrorCount = diagnosticSink.getErrorCount() + tempRootsErrorCount;